package com.duobaoyu.dby.supply.biz.client.resource;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.duobaoyu.dby.supply.biz.client.resource.bean.dto.AfterSaleReasonDTO;
import com.duobaoyu.dby.supply.biz.client.resource.bean.vo.AfterSaleReasonVO;

import java.util.List;
import java.util.Map;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ResourceAfterSaleReasonAdminClient
 * @Description 售后原因admin client
 * @createTime 15:16:00 2023/10/08
 */
public interface ResourceAfterSaleReasonAdminClient {

    Map<Integer, List<AfterSaleReasonVO>> getAfterSaleReasonCacheByAfterSaleTypes(List<Integer> afterSaleTypes);

    boolean createAfterSaleReason(AfterSaleReasonDTO afterSaleReason);

    boolean updateAfterSaleReason(AfterSaleReasonDTO afterSaleReason);

    boolean deleteAfterSaleReason(Long id);

    AfterSaleReasonVO queryAfterSaleReason(Long id);

    Page<AfterSaleReasonVO> selectPage(AfterSaleReasonDTO afterSaleReason);
}
